<!-- Форма за изпращане на съобщения -->
<form method='post' action=''>
	<table id="message_send">
		<tr><td>От: </td><td><input type='text' name='nickname' /></td></tr>
			<tr><td>Получател: </td><td>
				<select name="to">
					<?php
						$select_users=mysql_query('SELECT id, username FROM users');
						while($row_users=mysql_fetch_assoc($select_users)){
						?>
						<option value="<?php echo $row_users['username']; ?>"><?php echo $row_users['username']; ?></option>
						<?php
						}
					?>
				</select>
			</td></tr>
			<tr><td>Тема: </td><td><input type='text' name='topic' /></td></tr>
			<tr><td>Съобщение: </td><td><textarea name='text' cols="5" rows="40"></textarea></td></tr>
			<tr><td></td><td><input type='submit' name='submit' value='Изпрати' /></td></tr>
	</table>	
</form>